package com.edu.exam.enums.assessment.generation;

/**
 * 生成状态枚举
 *
 * @author 系统生成
 * @version 2.0
 * @since 2025-11-09
 */
public enum GenerationStatus {
    PENDING("待生成"),
    PREPARING("准备中"),
    GENERATING("生成中"),
    VALIDATING("验证中"),
    COMPLETED("已完成"),
    FAILED("失败"),
    CANCELLED("已取消"),
    PAUSED("已暂停"),
    TIMEOUT("超时"),
    PARTIAL_COMPLETED("部分完成");

    private final String description;

    GenerationStatus(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return name() + " - " + description;
    }
}